import request from '@/utils/request'

// 查询失信记录列表
export function listDishonestyrecord(query) {
  return request({
    url: '/supply/dishonestyrecord/list',
    method: 'get',
    params: query
  })
}

// 查询失信记录详细
export function getDishonestyrecord(id) {
  return request({
    url: '/supply/dishonestyrecord/' + id,
    method: 'get'
  })
}

// 新增失信记录
export function addDishonestyrecord(data) {
  return request({
    url: '/supply/dishonestyrecord',
    method: 'post',
    data: data
  })
}

// 修改失信记录
export function updateDishonestyrecord(data) {
  return request({
    url: '/supply/dishonestyrecord',
    method: 'put',
    data: data
  })
}

// 删除失信记录
export function delDishonestyrecord(id) {
  return request({
    url: '/supply/dishonestyrecord/' + id,
    method: 'delete'
  })
}
